github.com/gotd/td/mtproto.Conn.cipher (field)

4 uses

	github.com/gotd/td/mtproto (current package)
		conn.go#L66: 	cipher       Cipher
		conn.go#L161: 		cipher:       opt.Cipher,
		new_encrypted_msg.go#L81: 	if err := c.cipher.Encrypt(s.Key, d, b); err != nil {
		read.go#L80: 	msg, err := c.cipher.DecryptFromBuffer(session.Key, b)